package com.avic.rong.search.adapter.searchResultFragmentsAdapters;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.avic.rong.R;

import java.util.List;

/**
 * Created by Chenjiaxin on 2019/7/20 12:55
 * E-Mail Address：16601203965@163.com
 */
public class SearchBiaoZhunRvAdapter extends RecyclerView.Adapter<SearchBiaoZhunRvAdapter.SearchPeiXunRvViewHolder>{

    private Context context;
    private LayoutInflater inflater;
    private List<String> list;

    public SearchBiaoZhunRvAdapter(Context context, List<String> list) {
        this.context = context;
        this.list = list;
        this.inflater = LayoutInflater.from(context);
    }

    @NonNull
    @Override
    public SearchPeiXunRvViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
        View view = inflater.inflate(R.layout.search_result_peixun_item,viewGroup,false);
        return new SearchPeiXunRvViewHolder(view);
    }

    @Override
    public void onBindViewHolder(@NonNull SearchPeiXunRvViewHolder searchArticleRvViewHolder, int i) {

    }

    @Override
    public int getItemCount() {
        return list.size();
    }

    class SearchPeiXunRvViewHolder extends RecyclerView.ViewHolder{

        public SearchPeiXunRvViewHolder(@NonNull View itemView) {
            super(itemView);
        }
    }
}
